<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * App\Orders
 *
 * @property int $id
 * @property string $order_num 订单号
 * @property int $user_id 下单用户
 * @property int $merchant_id 所属店铺
 * @property int $order_address_id 订单地址id
 * @property float $original_price 原始价格
 * @property float $discount_price 优惠后价格
 * @property string $discount_name 折扣名称
 * @property int $coupon_id 优惠券id
 * @property float $coupon_reduce_price 优惠券减的金额
 * @property float $pay_amount 订单实际成交价格
 * @property string|null $pay_time 支付时间
 * @property string|null $pay_way 支付方式：wechatpay,alipay,unionpay
 * @property int $is_pay 是否支付
 * @property string|null $express_time 发货时间
 * @property string|null $delivery_method 收货方式
 * @property string $remark 备注
 * @property int $status 订单状态：1待支付、2待发货、3待收货、4已完成
 * @property string|null $deleted_at
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereCouponId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereCouponReducePrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereDeliveryMethod($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereDiscountName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereDiscountPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereIsPay($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereMerchantId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereOrderAddressId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereOrderNum($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereOriginalPrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePayAmount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePayTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePayWay($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereRemark($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereUserId($value)
 * @mixin \Eloquent
 * @property float $delivery_fee 配送费
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Orders onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereDeliveryFee($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Orders withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Orders withoutTrashed()
 * @property string|null $express 快递公司
 * @property string|null $express_num 配送单号
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpress($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereExpressNum($value)
 * @property int $enterprise_id 所属企业
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereEnterpriseId($value)
 * @property string|null $receive_time 收货时间
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereReceiveTime($value)
 * @property string|null $agent_phone_number 客服手机号
 * @property string|null $agent_email 客服邮箱
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereAgentEmail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders whereAgentPhoneNumber($value)
 * @property int $prescription_info_id 处方信息id
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Orders wherePrescriptionInfoId($value)
 */
class Orders extends Model
{
    protected $table='orders';
    use SoftDeletes;
}
